package com.wn.ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @FileName: IocApplication
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/7/17 - 10:00
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
public class IocApplication {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-02.xml");
        Demo demo = applicationContext.getBean(Demo.class);
        System.out.println(demo);
        System.out.println("==============================");

    }
}
